package com.mzw.mzwclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @author L1nAn
 *
 * 签名工具
 */
public class SignUtils {
   /**
    * 生成签名
    * @param body
    * @param secretKey
    * @return
    */
   public static String genSign(String body, String secretKey) {
      Digester md5 = new Digester(DigestAlgorithm.MD5);
      String content = body.toString() + "." + secretKey;
      return md5.digestHex(content);
   }
}
